/**
 * 严选商品秒杀服务类
 * 用于获取严选商品列表、商品详情等商品相关操作
 */

const request = require('../libs/request');

class SecondService {
	
	static async getTodayGoods(){
        try {
            const response = await request.get('/v1/second/today', {
                needAuth: false,
            });
            
            return {
                success: response.code === 1,
                data: response.data,
                message: response.msg || '获取今日商品成功'
            };
        } catch (error) {
			return {
				success: false,
				data: null,
				message: error.message || '获取今日商品失败'
			};
		}
	}   
}

module.exports = SecondService; 